package com.pureut.storage.controller;

import com.pureut.storage.dto.PickingOutsourceDetailDto;
import com.pureut.storage.service.PickingOutsourceDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 委外发货明细控制层
 * @author: CM
 * @date: 2023/1/31  9:41
 */
@RestController
@RequestMapping("/pickingOutsourceDetail")
public class PickingOutsourceDetailController extends BaseController {

    @Resource
    PickingOutsourceDetailService pickingOutsourceDetailService;

    /**
     * 查询委外发货明细
     */
    @GetMapping("/list")
    public TableDataInfo<PickingOutsourceDetailDto> getList(String docNum, PageQuery pageQuery) {
        //查询委外发货明细列表
        return pickingOutsourceDetailService.getList(docNum,pageQuery);
    }



}
